<template>
  <div class="head-main">
    <div class="head-title">
      <i class="head-logo"></i>
      <span class="head-text">XXXX系统平台</span>
    </div>
    <GroupMenu
      style="height:80px;"
      @onActive="
        (menu, params, from) => {
          $emit(menu, params, from);
        }
      "
    ></GroupMenu>
  </div>
</template>

<script>
import GroupMenu from '@/common/menu/GroupMenu';

export default {
  name: 'GroupHeader',
  data() {
    return {};
  },
  props: {},
  components: {
    GroupMenu,
  },
  methods: {},
};
</script>

<style scoped>
.head-main {
  width: 100%;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 15px;
}
.head-logo {
  width: 40px;
  height: 40px;
  display: inline-block;
  margin: 0 5px 0 5px;
  background: url(~@/assets/logo.png) no-repeat;
  background-size: contain;
  background-position: center;
  vertical-align: middle;
}

.head-text {
  font-size: 23px;
  vertical-align: middle;
  display: inline-block;
  min-width: 40px;
  height: 40px;
  text-align: center;
  padding-left: 6px;
  line-height: 40px;
}
</style>
